<template>
    <div>
        <el-dialog title="修改" :visible.sync="dialogVisibleUpdate">
            <el-form :label-position="'right'" label-width="80px">
                <el-form-item label="用户名">
                    <el-input placeholder="请输入用户名"></el-input>
                </el-form-item>
                <el-form-item label="密码">
                    <el-input type="passwordu" placeholder="请输入密码"></el-input>
                </el-form-item>

                <el-form-item label="电子邮件">
                    <el-input placeholder="请输入电子邮件"></el-input>
                </el-form-item>
            </el-form>
            <div slot="footer" class="dialog-footer">
                <el-button @click="hidddPage">取 消</el-button>
                <el-button @click="hidddPage">确 定</el-button>
            </div>
        </el-dialog>
    </div>

</template>

<script>
    export default {
        name: "UpdateUser",
        props:["dialogVisibleu"],
        data(){
            return {
                dialogVisibleUpdate:false
            }
        },
        methods: {
            hidddPage() {
                console.log('关闭更新用户页面')
             this.$emit('hidddPageUpdate')
            }
        },
        watch: {
            dialogVisibleu(newVal,oldVal){
                console.log(oldVal)
                console.log(newVal)
                this.dialogVisibleUpdate = newVal
            }
        }
    }
</script>

<style scoped>

</style>
